require('../css/advertisement.less')
document.ready(function () {
    let timeNum = document.querySelector('.timer span')
    let jumpBtn = document.querySelector('.btnBox')
    setInterval(function () {
        let num = Number(timeNum.textContent) - 1
        if (num === 0) {
            location.href = './login.html'
            clearInterval()
        } else {
            timeNum.textContent = num
        }
    }, 1000)
    jumpBtn.addEventListener('click', function (event) {
        location.href = './login.html'
    })
})
